package com.acme.bankapp.service.bank.network.command;

/**
 * This class implements {@link Command} interface for invalid command
 *
 * @author Alexander Kotov (kotov.alex.22@gmail.com)
 */
public class InvalidCommand implements Command {
    private String message;

    public InvalidCommand(final String message) {
        this.message = message;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String execute() {
        return message;
    }
}
